package com.zhihesj.anan.system.mapper;

import com.zhihesj.anan.system.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhihesj.anan.system.entity.RoleDept;
import com.zhihesj.anan.system.entity.RoleMenu;
import com.zhihesj.anan.system.entity.UserRole;

import java.util.List;

/**
 * <p>
 * 角色信息表 Mapper 接口
 * </p>
 *
 * @author anan
 * @since 2020-07-22
 */
public interface RoleMapper extends BaseMapper<Role> {

    List<Role> findRoleByLoginName(String loginName);

    List<Role> getRolesByUserid(Long userId);

    List<RoleMenu> getMenuList(Long roleId);

    List<UserRole> getUserList(Long roleId);

    List<RoleDept> getDeptList(Long roleId);

    List<Role> getRolesByIdentifier(String identifier);


}
